export const getLanguageFromFileName = (fileName) => {
  const extension = fileName.split(".").pop().toLowerCase();
  const languageMap = {
    js: "javascript",
    ts: "typescript",
    java: "java",
    py: "python",
    html: "html",
    css: "css",
    json: "json",
    vue: "html",
    jsx: "javascript",
    tsx: "typescript",
    md: "markdown",
    xml: "xml",
    yml: "yaml",
    yaml: "yaml",
    sh: "shell",
    bash: "shell",
    sql: "sql",
  };
  return languageMap[extension] || "plaintext";
};
